package com.yunao.commons.Exception;


import com.yunao.commons.enums.ResultEnum;

public class YunaoException extends RuntimeException{
    private Integer code;

    public YunaoException(ResultEnum resultEnum) {
        super(resultEnum.getMessage());
        this.code = resultEnum.getCode();
    }

    public YunaoException(Integer code,String message) {
        super(message);
        this.code = code;
    }
}
